package com.tinalucky.test;

import lombok.Data;
import lombok.NonNull;
import lombok.extern.log4j.Log4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@SpringBootConfiguration
public class Main {

    private int a;

    public static void main(String[] args) {
        // branch 修改
        // branch 修改2
        // master 修改3
        // branch 修改333
        // branch 修改444
	// git 修改555
	// git 修改555 master 修改 branch修改
        Student student = new Student("tinalucky", 36);
        student.setAge(37);
        System.out.println(student);
        ConfigurableApplicationContext run = SpringApplication.run(Main.class);
        int beanDefinitionCount = run.getBeanDefinitionCount();
        System.out.println(beanDefinitionCount);
        System.out.println("hello git");
        System.out.println("hello git2");
        System.out.println("hello git_master1");
        System.out.println("hello git2_branch_1");
    }

    public int add(@NonNull int a, @NonNull int b) {
        return a + b;
    }


    @Data
    public static class Student {
        @NonNull
        String name;
        @NonNull
        int age;
    }
}
